from flask import Flask
from api.view.login import login
from api.view.users.user import user


def register_views(api: Flask):
    api.add_resource(login, '/api/login', endpoint='login')
    api.add_resource(user, '/api/users/user/<int:id>', endpoint='user')

